import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: '',
      order: 2,
      title: '系统管理',
      tabGroup: 'sys',
    },
    name: 'Sys',
    path: '/sys',
    children: [
      {
        name: 'OrganizationalManagement',
        path: '/organizationalManagement',
        component: () =>
          import('#/views/sys/organizationalManagement/index.vue'),
        meta: {
          icon: '1.png',
          title: '组织管理',
          tabGroup: 'sys',
        },
      },
      {
        name: 'AccountManagement',
        path: '/accountManagement',
        component: () => import('#/views/sys/accountManagement/index.vue'),
        meta: {
          icon: '2.png',
          title: '账号管理',
          tabGroup: 'sys',
        },
      },
      {
        name: 'Role',
        path: '/role',
        component: () => import('#/views/sys/role/index.vue'),
        meta: {
          icon: '3.png',
          title: '角色管理',
          tabGroup: 'sys',
        },
      },
      {
        name: 'LogManagement',
        path: '/logManagement',
        component: () => import('#/views/sys/logManagement/index.vue'),
        meta: {
          icon: '4.png',
          title: '日志管理',
          keepAlive: true,
          tabGroup: 'sys',
        },
      },
      // {
      //   name: 'MaterialManagement',
      //   path: '/materialManagement',
      //   component: () => import('#/views/sys/materialManagement/index.vue'),
      //   meta: {
      //     icon: '11.png',
      //     title: '素材管理',
      //     keepAlive: true,
      //     tabGroup: 'sys'
      //   },
      // },
      {
        name: 'EquipmentManagement',
        path: '/equipmentManagement',
        component: () => import('#/views/sys/equipmentManagement/index.vue'),
        meta: {
          icon: '5.png',
          title: '设备管理',
          tabGroup: 'sys',
          keepAlive: true,
        },
      },
      {
        name: 'UvaAddEdit',
        path: '/uvaAddEdit',
        component: () =>
          import('#/views/sys/equipmentManagement/uva/uvaAddEdit.vue'),
        meta: {
          icon: '',
          title: '添加编辑无人机',
          hideInMenu: true,
          hideInBreadcrumb: true,
          hideInTab: true,
          tabGroup: 'sys',
          activePath: '/equipmentManagement',
        },
      },
      {
        name: 'UvaDetail',
        path: '/uvaDetail',
        component: () =>
          import('#/views/sys/equipmentManagement/uva/uvaDetail.vue'),
        meta: {
          icon: '',
          title: '无人机详情',
          hideInMenu: true,
          hideInBreadcrumb: true,
          hideInTab: true,
          tabGroup: 'sys',
          activePath: '/equipmentManagement',
        },
      },
      {
        name: 'AirportAddEdit',
        path: '/airportAddEdit',
        component: () =>
          import('#/views/sys/equipmentManagement/airport/airportAddEdit.vue'),
        meta: {
          icon: '',
          title: '添加编辑机场',
          hideInMenu: true,
          hideInBreadcrumb: true,
          hideInTab: true,
          tabGroup: 'sys',
          activePath: '/equipmentManagement',
        },
      },
      {
        name: 'AirportDetail',
        path: '/airportDetail',
        component: () =>
          import('#/views/sys/equipmentManagement/airport/airportDetail.vue'),
        meta: {
          icon: '',
          title: '机场详情',
          hideInMenu: true,
          hideInBreadcrumb: true,
          hideInTab: true,
          tabGroup: 'sys',
          activePath: '/equipmentManagement',
        },
      },
      // {
      //   name: 'Task',
      //   path: '/task',
      //   component: () =>
      //     import('#/views/sys/task/index.vue'),
      //   meta: {
      //     icon: '6.png',
      //     title: '任务记录',
      //     tabGroup: 'sys'
      //   },
      // },
      // {
      //   name: 'TaskDetail',
      //   path: '/taskDetail',
      //   component: () =>
      //     import('#/views/sys/task/detail.vue'),
      //   meta: {
      //     icon: '',
      //     title: '任务详情',
      //     hideInMenu: true,
      //     hideInTab:true,
      //     tabGroup: 'sys',
      //     activePath: '/task'
      //   },
      // },
      // {
      //   name: 'BasicSettings',
      //   path: '/basicSettings',
      //   component: () => import('#/views/sys/basicSettings/index.vue'),
      //   meta: {
      //     icon: '7.png',
      //     title: '基础设置',
      //     keepAlive: true,
      //     tabGroup: 'sys',
      //   },
      // },
      // {
      //   name: 'DataStatistics',
      //   path: '/dataStatistics',
      //   component: () => import('#/views/sys/dataStatistics/index.vue'),
      //   meta: {
      //     icon: '8.png',
      //     title: '数据统计',
      //     tabGroup: 'sys',
      //   },
      // },
      // {
      //   name: 'AlarmConfiguration',
      //   path: '/alarmConfiguration',
      //   component: () => import('#/views/sys/alarmConfiguration/index.vue'),
      //   meta: {
      //     icon: '9.png',
      //     title: '接警配置',
      //     tabGroup: 'sys',
      //   },
      // },
      {
        name: 'Ai',
        path: '/ai',
        component: () => import('#/views/sys/ai/index.vue'),
        meta: {
          icon: '10.png',
          title: 'AI算法模型',
          tabGroup: 'sys',
        },
      },
      {
        name: 'MediaData',
        path: '/mediaData',
        component: () => import('#/views/sys/mediaList/index.vue'),
        meta: {
          icon: '17.png',
          title: '媒体数据',
          tabGroup: 'sys',
        },
      },
      {
        name: 'MediaDataDetail',
        path: '/mediaDataDetail',
        component: () => import('#/views/sys/mediaList/detail.vue'),
        meta: {
          icon: '',
          title: '媒体数据详情',
          hideInMenu: true,
          hideInBreadcrumb: true,
          hideInTab: true,
          tabGroup: 'sys',
          activePath: '/mediaData',
        },
      },
      {
        name: 'VideoDetail',
        path: '/videoDetail',
        component: () => import('#/views/sys/mediaList/detail/video.vue'),
        meta: {
          icon: '',
          // title: '视频详情',
          title: '文件详情',
          hideInMenu: true,
          hideInBreadcrumb: true,
          hideInTab: true,
          tabGroup: 'sys',
        },
      },
      {
        name: 'AudioDetail',
        path: '/audioDetail',
        component: () => import('#/views/sys/mediaList/detail/audio.vue'),
        meta: {
          icon: '',
          title: '音频详情',
          hideInMenu: true,
          hideInBreadcrumb: true,
          hideInTab: true,
          tabGroup: 'sys',
        },
      },
      {
        name: 'ImgDetail',
        path: '/imgDetail',
        component: () => import('#/views/sys/mediaList/detail/img.vue'),
        meta: {
          icon: '',
          title: '图片详情',
          hideInMenu: true,
          hideInBreadcrumb: true,
          hideInTab: true,
          tabGroup: 'sys',
        },
      },
    ],
  },
];

export default routes;
